package com.maxh.service.impl;

import com.maxh.mapper.FeedbackMapper;
import com.maxh.pojo.Feedback;
import com.maxh.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("FeedbackService")
public class FeedbackServiceImpl  implements FeedbackService {
    @Autowired(required =  false)
    FeedbackMapper feedbackMapper;

    @Override
    public Boolean addFeedback(Feedback feedback) {
        return feedbackMapper.saveFeedback(feedback);
    }

    @Override
    public Object feedbackList() {
        return feedbackMapper.findFeedback();
    }
}
